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)
The following reply was made to PR install/50832; it has been noted by GNATS.
From: James Blachly <james.blachly%gmail.com@localhost>
To: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost,
martin%NetBSD.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: install/50832: NetBSD-7.0 iso won't acquire DHCPv4 lease in SmartOS' KVM (and more)
Date: Sat, 20 Feb 2016 18:52:44 -0500
--Apple-Mail=_8A25F939-2766-4715-9078-249CBFBAA5B1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
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=3Dcd,once=3Dd cdrom=3D/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=3D8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: d2:e8:b0:94:ee:08
lo0: flags=3D8048<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:
>=20
> 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=20
> (2) What is the output of "ifconfig vioif0" from the VM
>=20
> Joerg
--Apple-Mail=_8A25F939-2766-4715-9078-249CBFBAA5B1
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D""><div class=3D"">Dear Joerg,</div><div =
class=3D""><br class=3D""></div><div class=3D"">[root@smartos ~]# cat =
netbsd.json</div><div class=3D""><div class=3D"">{</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>"brand": "kvm",</div><div class=3D""><span class=3D"Apple-tab-span"=
style=3D"white-space:pre"> </span>"alias": "netbsd7",</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>"autoboot": false,</div><div class=3D""><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>"ram": =
"1024",</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"vcpus": "2",</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>"nics": [</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>{</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>"nic_tag": "admin",</div><div class=3D""><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>"ip": "dhcp",</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"model": =
"virtio"</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>}</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>],</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"disks": [</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>{</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"boot": =
true,</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"model": =
"virtio",</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"size": =
8192,</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>"compression": =
"on"</div><div class=3D""><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"> </span>}</div><div =
class=3D""><span class=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>]</div><div class=3D"">}</div></div><div class=3D""><div =
class=3D"">[root@smartos ~]# vmadm create -f netbsd.json</div><div =
class=3D"">Successfully created VM =
55ea99a1-a802-4046-e434-c8bec106237f</div><div class=3D"">[root@smartos =
~]# cp /tank/archives/Disk\ Images/Operating\ =
Systems/NetBSD-7.0-amd64.iso =
/zones/55ea99a1-a802-4046-e434-c8bec106237f/root/</div></div><div =
class=3D""><div class=3D"">[root@smartos ~]# vmadm boot =
55ea99a1-a802-4046-e434-c8bec106237f order=3Dcd,once=3Dd =
cdrom=3D/NetBSD-7.0-amd64.iso,ide</div><div class=3D"">Successfully =
started VM 55ea99a1-a802-4046-e434-c8bec106237f</div></div><div =
class=3D"">[root@smartos ~]# vmadm get =
55ea99a1-a802-4046-e434-c8bec106237f</div><div class=3D"">{</div><div =
class=3D""> "zonename": =
"55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D""> =
"autoboot": true,</div><div class=3D""> "brand": "kvm",</div><div =
class=3D""> "limit_priv": =
"default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session",<=
/div><div class=3D""> "v": 1,</div><div class=3D""> =
"create_timestamp": "2016-02-20T23:25:33.984Z",</div><div =
class=3D""> "cpu_shares": 100,</div><div class=3D""> =
"max_lwps": 2000,</div><div class=3D""> "max_msg_ids": =
4096,</div><div class=3D""> "max_sem_ids": 4096,</div><div =
class=3D""> "max_shm_ids": 4096,</div><div class=3D""> =
"max_shm_memory": 2048,</div><div class=3D""> "zfs_io_priority": =
100,</div><div class=3D""> "max_physical_memory": 2048,</div><div =
class=3D""> "max_locked_memory": 2048,</div><div class=3D""> =
"max_swap": 2048,</div><div class=3D""> "billing_id": =
"00000000-0000-0000-0000-000000000000",</div><div class=3D""> =
"owner_uuid": "00000000-0000-0000-0000-000000000000",</div><div =
class=3D""> "alias": "netbsd7",</div><div class=3D""> "ram": =
1024,</div><div class=3D""> "vcpus": 2,</div><div class=3D""> =
"disks": [</div><div class=3D""> {</div><div =
class=3D""> "path": =
"/dev/zvol/rdsk/zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",</div><d=
iv class=3D""> "boot": true,</div><div =
class=3D""> "model": "virtio",</div><div =
class=3D""> "media": "disk",</div><div =
class=3D""> "zfs_filesystem": =
"zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",</div><div =
class=3D""> "zpool": "zones",</div><div =
class=3D""> "size": 8192,</div><div class=3D""> =
"compression": "on",</div><div class=3D""> =
"refreservation": 8192,</div><div class=3D""> =
"block_size": 8192</div><div class=3D""> }</div><div =
class=3D""> ],</div><div class=3D""> "nics": [</div><div =
class=3D""> {</div><div class=3D""> =
"interface": "net0",</div><div class=3D""> "mac": =
"d2:e8:b0:94:ee:08",</div><div class=3D""> =
"nic_tag": "admin",</div><div class=3D""> "ip": =
"dhcp",</div><div class=3D""> "ips": [</div><div =
class=3D""> "dhcp"</div><div class=3D""> =
],</div><div class=3D""> "model": =
"virtio",</div><div class=3D""> "primary": =
true</div><div class=3D""> }</div><div class=3D""> =
],</div><div class=3D""> "uuid": =
"55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D""> =
"zone_state": "running",</div><div class=3D""> "zonepath": =
"/zones/55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D""> =
"zoneid": 28,</div><div class=3D""> "last_modified": =
"2016-02-20T23:26:49.000Z",</div><div class=3D""> "resolvers": =
[],</div><div class=3D""> "firewall_enabled": false,</div><div =
class=3D""> "server_uuid": =
"44454c4c-5800-1043-8044-b1c04f535331",</div><div class=3D""> =
"platform_buildstamp": "20160121T174331Z",</div><div class=3D""> =
"state": "running",</div><div class=3D""> "boot_timestamp": =
"2016-02-20T23:26:47.000Z",</div><div class=3D""> "pid": =
83941,</div><div class=3D""> "customer_metadata": {},</div><div =
class=3D""> "internal_metadata": {},</div><div class=3D""> =
"routes": {},</div><div class=3D""> "tags": {},</div><div =
class=3D""> "quota": 10,</div><div class=3D""> =
"zfs_root_recsize": 131072,</div><div class=3D""> =
"zfs_filesystem": =
"zones/55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D""> =
"zpool": "zones",</div><div class=3D""> "snapshots": []</div><div =
class=3D"">}</div></div><div class=3D""><br class=3D""></div><div =
class=3D""><br class=3D""></div><div class=3D"">Now from NetBSD =
machine:</div><div class=3D""><br class=3D""></div><div class=3D""><font =
face=3D"Courier New" class=3D""># ifconfig</font></div><div =
class=3D""><font face=3D"Courier New" class=3D"">vioif0: =
flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> mtu =
1500</font></div><div class=3D""><font face=3D"Courier New" =
class=3D""> address: =
d2:e8:b0:94:ee:08</font></div><div class=3D""><font face=3D"Courier New" =
class=3D"">lo0: flags=3D8048<LOOPBACK,RUNNING,MULTICAST> mtu =
33648</font></div><div class=3D""><font face=3D"Courier New" class=3D""># =
netstat -r</font></div><div class=3D""><font face=3D"Courier New" =
class=3D"">Routing tables</font></div><div class=3D""><font =
face=3D"Courier New" class=3D""># netstat -r</font></div><div =
class=3D""><font face=3D"Courier New" class=3D"">Routing =
tables</font></div><div class=3D""><font face=3D"Courier New" =
class=3D""><br class=3D""></font></div><div class=3D""><font =
face=3D"Courier New" class=3D"">Internet:</font></div><div =
class=3D""><font face=3D"Courier New" class=3D"">Destination =
Gateway =
Flags Refs Use =
Mtu Interface</font></div><div class=3D""><font face=3D"Courier =
New" class=3D"">192.16.1/24 link#1 =
UC =
- - - =
vioif0</font></div><div class=3D""><font face=3D"Courier New" =
class=3D""><br class=3D""></font></div><div class=3D""><font =
face=3D"Courier New" class=3D"">Internet6:</font></div><div =
class=3D""><font face=3D"Courier New" =
class=3D"">-trimmed-</font></div><div class=3D""><font face=3D"Courier =
New" class=3D""><br class=3D""></font></div><div class=3D""><br =
class=3D""></div><div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On Feb 20, 2016, at 3:24 PM, =
Joerg Sonnenberger <<a href=3D"mailto:joerg%britannica.bec.de@localhost" =
class=3D"">joerg%britannica.bec.de@localhost</a>> wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">As I =
said, I have a fully working setup, so I somehow doubt it is that.<br =
class=3D"">Let's start with something simple:<br class=3D"">(1) What is =
the output of "vmadm get <uuid>" for the zone <br class=3D"">(2) =
What is the output of "ifconfig vioif0" from the VM<br class=3D""><br =
class=3D"">Joerg<br class=3D""></div></div></blockquote></div><br =
class=3D""></div></body></html>=
--Apple-Mail=_8A25F939-2766-4715-9078-249CBFBAA5B1--
Home |
Main Index |
Thread Index |
Old Index