Hi Evan

Did you deploy from the joyent supplied Ubuntu images available through imgadm 
or did you install from an ISO? If from an ISO, it might be that the version of 
Ubuntu that you installed from does not contain the network drivers for virtio, 
which is the kind of network card that you specified in your JSON payload under 
‘model’. 

You could try changing the network card model to e1000 by running:

vmadm get <uuid of vm> | json nics <- note down the MAC address of the nic you 
want to modify
echo ‘{“update_nics”:[{“mac”:”<mac of nic>”,”model”:”e1000”}]}’ | vmadm update 
<uuid of vm>

Alternatively, you can look at downloading the Joyent supplied Ubuntu template 
by looking at:
imgadm avail | grep ubuntu
imgadm install <uuid of an image that interests you>

Joyent do some customisations to the kernel to improve performance and include 
the virtio disk and NIC drivers.

Thanks,
Dave

On 24 Mar 2014, at 11:11 am, Evan Rowley <[email protected]> wrote:

> I'm a first-time user of SmartOS who is hoping to deploy some Ubuntu
> KVM guests on his fresh installation of SmartOS. I need some slight
> hand-holding here because something which seems simple isn't working
> right for me. Here's the story:
> 
> After looking at the wiki's "How to create a KVM VM ( Hypervisor
> virtualized machine ) in SmartOS", I came up with some JSON and
> supplied it as a file to vmadm create. The Ubuntu KVM guest was
> created fine, I VNC'd into it and set a root password. I realized that
> networking wasn't working which I thought was odd. Checking the
> runlevel, I realized that this was booted to runlevel 2. At least with
> Red Hat, I know runlevel 3 is what's required for networking. I'm
> assuming the same is required for Ubuntu. I edited one of the /etc/...
> files to set the KVM guest to boot into runlevel 3 which is required
> for networking. Next I restarted the Ubuntu KVM guest which got it
> into runlevel 3. Good, but even after this, networking still seems to
> be disabled on the guest. All the correct IP information specified in
> the JSON seems to have made it's way to the KVM guest. At this point
> I'm not sure what to do.
> 
> I did not change any networking settings in the global zone
> specifically for this VM and am not sure if this is something I needed
> to do. The wiki does have a page "Managing NICs" but at this point I'm
> not sure which parts of it are relevant to what I'm trying to
> accomplish.
> 
> The JSON, the output of dladm show-phys, and the output of dladm
> show-vnic are below. Please take a look at it and see if anything is
> amiss.
> 
> [root@00-1f-29-61-59-34 /opt]# cat ubuntu_test_vm_spec.json
> {
>  "brand": "kvm",
>  "alias": "existentialist",
>  "hostname": "existentialist.doesntexist.com",
>  "vcpus": 2,
>  "autoboot": false,
>  "ram": 2048,
>  "resolvers": ["8.8.8.8", "8.8.4.4"],
>  "disks": [
>    {
>      "boot": true,
>      "model": "virtio",
>      "size": 20480,
>      "image_uuid": "d2ba0f30-bbe8-11e2-a9a2-6bc116856d85"
>    }
>  ],
>  "nics": [
>    {
>      "nic_tag": "admin",
>      "model": "virtio",
>      "ip": "XXX.XXX.137.205",
>      "netmask": "255.255.248.0",
>      "gateway": "XXX.XXX.136.1",
>      "primary": 1
>    }
>  ],
>  "customer_metadata":
>   {
>    "root_authorized_keys":
> "ssh-rsa 
> AAAAB3NzaC1yc2EAAAABJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX9Vc2eYd6Zw==
> mykey"
>   }
> }
> [root@00-1f-29-61-59-34 /opt]# dladm show-phys
> LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
> e1000g0      Ethernet             up         10     full      e1000g0
> e1000g1      Ethernet             up         10     full      e1000g1
> [root@00-1f-29-61-59-34 /opt]# dladm show-vnic
> LINK         OVER       SPEED MACADDRESS        MACADDRTYPE VID  ZONE
> net0         e1000g0    0     f2:62:bb:ac:d:9b  fixed       0
> 2e037c5a-bd7d-4ab7-b909-10338a8d00c7
> [root@00-1f-29-61-59-34 /opt]#
> 
> 
> Any thoughts? Please let me know!
> 
> Thanks,
> 
> - EJR
> 
> 
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184463/25738179-216c4b5f
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to