1

I've launched an Ubuntu VM on , and set it's REGION/AFFINITY GROUP/VIRTUAL NETWORK to an affinity group that I created.


virtual network configuration

But unfortunately it's getting a random IP address outside my specified network (10.175.174.xx).

Why would this be, and what do I need to do differently to get this server on my virtual network?


Edit:

Today I tried creating a brand new VM using Ubuntu Server and discovered that I can associate the VM with an affinity group, but not with a Virtual Network. This is probably where I went wrong before. So the new question is...

"How can I associate a new Ubuntu Server with a Virtual Network on Windows Azure?"


Here's a screenshot of the relavent setup with Ubuntu

enter image description here

And here's the EXACT SAME dropdownlist when setup on Windows Server

enter image description here

3
  • where do you see this address? on the portal or in your VM?
    – user152459
    Jan 8, 2013 at 7:21
  • I'm seeing it within the portal. Jan 8, 2013 at 15:50
  • I'm also seeing it in the terminal when I log in. IP address for eth0: 10.175.174.xx Jan 8, 2013 at 16:53

1 Answer 1

1

After a little bit (two days) of digging, I was able to get in touch with an Azure expert on twitter.

Michael Washam ‏@MWashamMS
@ChaseFlorell @SyntaxC4 @WindowsAzure The portal doesn't support deploying Linux VMs into a VNET (yet). You have to use cli (PS or Node)

The result is quite simple, use

# From Get-AzureVMImage 
$img = 'b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-12_04_1-LTS-amd64-server-20121218-en-us-30GB'
$user = 'somelinuxuser'
$pass = 'somelinuxpwd!'
$vnet = 'HybridVNET'
$ag = 'WestUSAG'
$svcname = 'mylinuxsvc1' 

New-AzureVMConfig -Name 'linuxfromps1' -ImageName $img -InstanceSize Small |
    Add-AzureProvisioningConfig -Linux -LinuxUser $user -Password $pass |
    Set-AzureSubnet -SubnetNames 'AppSubnet' | # Optional 
    New-AzureVM -ServiceName $svcname -VNetName $vnet -AffinityGroup $ag

reference

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .