NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/50832: NetBSD-7.0 iso won't acquire DHCPv4 lease in SmartOS' KVM (and more)



Dear Joerg,

[root@smartos ~]# cat netbsd.json
{
"brand": "kvm",
"alias": "netbsd7",
"autoboot": false,
"ram": "1024",
"vcpus": "2",
"nics": [
{
"nic_tag": "admin",
"ip": "dhcp",
"model": "virtio"
}
],
"disks": [
{
"boot": true,
"model": "virtio",
"size": 8192,
"compression": "on"
}
]
}
[root@smartos ~]# vmadm create -f netbsd.json
Successfully created VM 55ea99a1-a802-4046-e434-c8bec106237f
[root@smartos ~~]# cp /tank/archives/Disk\ Images/Operating\ Systems/NetBSD-7.0-amd64.iso /zones/55ea99a1-a802-4046-e434-c8bec106237f/root/
[root@smartos ~]# vmadm boot 55ea99a1-a802-4046-e434-c8bec106237f order=cd,_once_=d cdrom=/NetBSD-7.0-amd64.iso,ide
Successfully started VM 55ea99a1-a802-4046-e434-c8bec106237f
[root@smartos ~]# vmadm get 55ea99a1-a802-4046-e434-c8bec106237f
{
  "zonename": "55ea99a1-a802-4046-e434-c8bec106237f",
  "autoboot": true,
  "brand": "kvm",
  "limit_priv": "default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session",
  "v": 1,
  "create_timestamp": "2016-02-20T23:25:33.984Z",
  "cpu_shares": 100,
  "max_lwps": 2000,
  "max_msg_ids": 4096,
  "max_sem_ids": 4096,
  "max_shm_ids": 4096,
  "max_shm_memory": 2048,
  "zfs_io_priority": 100,
  "max_physical_memory": 2048,
  "max_locked_memory": 2048,
  "max_swap": 2048,
  "billing_id": "00000000-0000-0000-0000-000000000000",
  "owner_uuid": "00000000-0000-0000-0000-000000000000",
  "alias": "netbsd7",
  "ram": 1024,
  "vcpus": 2,
  "disks": [
    {
      "path": "/dev/zvol/rdsk/zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",
      "boot": true,
      "model": "virtio",
      "media": "disk",
      "zfs_filesystem": "zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",
      "zpool": "zones",
      "size": 8192,
      "compression": "on",
      "refreservation": 8192,
      "block_size": 8192
    }
  ],
  "nics": [
    {
      "interface": "net0",
      "mac": "d2:e8:b0:94:ee:08",
      "nic_tag": "admin",
      "ip": "dhcp",
      "ips": [
        "dhcp"
      ],
      "model": "virtio",
      "primary": true
    }
  ],
  "uuid": "55ea99a1-a802-4046-e434-c8bec106237f",
  "zone_state": "running",
  "zonepath": "/zones/55ea99a1-a802-4046-e434-c8bec106237f",
  "zoneid": 28,
  "last_modified": "2016-02-20T23:26:49.000Z",
  "resolvers": [],
  "firewall_enabled": false,
  "server_uuid": "44454c4c-5800-1043-8044-b1c04f535331",
  "platform_buildstamp": "20160121T174331Z",
  "state": "running",
  "boot_timestamp": "2016-02-20T23:26:47.000Z",
  "pid": 83941,
  "customer_metadata": {},
  "internal_metadata": {},
  "routes": {},
  "tags": {},
  "quota": 10,
  "zfs_root_recsize": 131072,
  "zfs_filesystem": "zones/55ea99a1-a802-4046-e434-c8bec106237f",
  "zpool": "zones",
  "snapshots": []
}


Now from NetBSD machine:

# ifconfig
vioif0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: d2:e8:b0:94:ee:08
lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> mtu 33648
# netstat -r
Routing tables
# netstat -r
Routing tables

Internet:
Destination        Gateway            Flags     Refs        Use    Mtu Interface
192.16.1/24        link#1             UC           -          -      -  vioif0

Internet6:
-trimmed-



On Feb 20, 2016, at 3:24 PM, Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:

As I said, I have a fully working setup, so I somehow doubt it is that.
Let's start with something simple:
(1) What is the output of "vmadm get <uuid>" for the zone
(2) What is the output of "ifconfig vioif0" from the VM

Joerg



Home | Main Index | Thread Index | Old Index