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"">&nbsp; "zonename": =
 "55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D"">&nbsp; =
 "autoboot": true,</div><div class=3D"">&nbsp; "brand": "kvm",</div><div =
 class=3D"">&nbsp; "limit_priv": =
 "default,-file_link_any,-net_access,-proc_fork,-proc_info,-proc_session",<=
 /div><div class=3D"">&nbsp; "v": 1,</div><div class=3D"">&nbsp; =
 "create_timestamp": "2016-02-20T23:25:33.984Z",</div><div =
 class=3D"">&nbsp; "cpu_shares": 100,</div><div class=3D"">&nbsp; =
 "max_lwps": 2000,</div><div class=3D"">&nbsp; "max_msg_ids": =
 4096,</div><div class=3D"">&nbsp; "max_sem_ids": 4096,</div><div =
 class=3D"">&nbsp; "max_shm_ids": 4096,</div><div class=3D"">&nbsp; =
 "max_shm_memory": 2048,</div><div class=3D"">&nbsp; "zfs_io_priority": =
 100,</div><div class=3D"">&nbsp; "max_physical_memory": 2048,</div><div =
 class=3D"">&nbsp; "max_locked_memory": 2048,</div><div class=3D"">&nbsp; =
 "max_swap": 2048,</div><div class=3D"">&nbsp; "billing_id": =
 "00000000-0000-0000-0000-000000000000",</div><div class=3D"">&nbsp; =
 "owner_uuid": "00000000-0000-0000-0000-000000000000",</div><div =
 class=3D"">&nbsp; "alias": "netbsd7",</div><div class=3D"">&nbsp; "ram": =
 1024,</div><div class=3D"">&nbsp; "vcpus": 2,</div><div class=3D"">&nbsp; =
 "disks": [</div><div class=3D"">&nbsp; &nbsp; {</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "path": =
 "/dev/zvol/rdsk/zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",</div><d=
 iv class=3D"">&nbsp; &nbsp; &nbsp; "boot": true,</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "model": "virtio",</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "media": "disk",</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "zfs_filesystem": =
 "zones/55ea99a1-a802-4046-e434-c8bec106237f-disk0",</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "zpool": "zones",</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; "size": 8192,</div><div class=3D"">&nbsp; =
 &nbsp; &nbsp; "compression": "on",</div><div class=3D"">&nbsp; &nbsp; =
 &nbsp; "refreservation": 8192,</div><div class=3D"">&nbsp; &nbsp; &nbsp; =
 "block_size": 8192</div><div class=3D"">&nbsp; &nbsp; }</div><div =
 class=3D"">&nbsp; ],</div><div class=3D"">&nbsp; "nics": [</div><div =
 class=3D"">&nbsp; &nbsp; {</div><div class=3D"">&nbsp; &nbsp; &nbsp; =
 "interface": "net0",</div><div class=3D"">&nbsp; &nbsp; &nbsp; "mac": =
 "d2:e8:b0:94:ee:08",</div><div class=3D"">&nbsp; &nbsp; &nbsp; =
 "nic_tag": "admin",</div><div class=3D"">&nbsp; &nbsp; &nbsp; "ip": =
 "dhcp",</div><div class=3D"">&nbsp; &nbsp; &nbsp; "ips": [</div><div =
 class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; "dhcp"</div><div class=3D"">&nbsp; =
 &nbsp; &nbsp; ],</div><div class=3D"">&nbsp; &nbsp; &nbsp; "model": =
 "virtio",</div><div class=3D"">&nbsp; &nbsp; &nbsp; "primary": =
 true</div><div class=3D"">&nbsp; &nbsp; }</div><div class=3D"">&nbsp; =
 ],</div><div class=3D"">&nbsp; "uuid": =
 "55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D"">&nbsp; =
 "zone_state": "running",</div><div class=3D"">&nbsp; "zonepath": =
 "/zones/55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D"">&nbsp;=
  "zoneid": 28,</div><div class=3D"">&nbsp; "last_modified": =
 "2016-02-20T23:26:49.000Z",</div><div class=3D"">&nbsp; "resolvers": =
 [],</div><div class=3D"">&nbsp; "firewall_enabled": false,</div><div =
 class=3D"">&nbsp; "server_uuid": =
 "44454c4c-5800-1043-8044-b1c04f535331",</div><div class=3D"">&nbsp; =
 "platform_buildstamp": "20160121T174331Z",</div><div class=3D"">&nbsp; =
 "state": "running",</div><div class=3D"">&nbsp; "boot_timestamp": =
 "2016-02-20T23:26:47.000Z",</div><div class=3D"">&nbsp; "pid": =
 83941,</div><div class=3D"">&nbsp; "customer_metadata": {},</div><div =
 class=3D"">&nbsp; "internal_metadata": {},</div><div class=3D"">&nbsp; =
 "routes": {},</div><div class=3D"">&nbsp; "tags": {},</div><div =
 class=3D"">&nbsp; "quota": 10,</div><div class=3D"">&nbsp; =
 "zfs_root_recsize": 131072,</div><div class=3D"">&nbsp; =
 "zfs_filesystem": =
 "zones/55ea99a1-a802-4046-e434-c8bec106237f",</div><div class=3D"">&nbsp; =
 "zpool": "zones",</div><div class=3D"">&nbsp; "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&lt;BROADCAST,SIMPLEX,MULTICAST&gt; mtu =
 1500</font></div><div class=3D""><font face=3D"Courier New" =
 class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; address: =
 d2:e8:b0:94:ee:08</font></div><div class=3D""><font face=3D"Courier New" =
 class=3D"">lo0: flags=3D8048&lt;LOOPBACK,RUNNING,MULTICAST&gt; 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 &nbsp; =
 &nbsp; &nbsp; &nbsp;Gateway &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
 &nbsp;Flags &nbsp; &nbsp; Refs &nbsp; &nbsp; &nbsp; &nbsp;Use &nbsp; =
 &nbsp;Mtu Interface</font></div><div class=3D""><font face=3D"Courier =
 New" class=3D"">192.16.1/24 &nbsp; &nbsp; &nbsp; &nbsp;link#1 &nbsp; =
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
 - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- &nbsp; &nbsp; &nbsp;- =
 &nbsp;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 &lt;<a href=3D"mailto:joerg%britannica.bec.de@localhost"; =
 class=3D"">joerg%britannica.bec.de@localhost</a>&gt; 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 &lt;uuid&gt;" 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