Re: [zones-discuss] VirtualBox bridge nic in a zone
I got it to work! Thank you for the explanation! I could not have figured this one out by myself! -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] VirtualBox bridge nic in a zone
Hi, I'm having trouble running a VM inside a zone where the VM's network interface is configured as a bridge over the VNIC I created for the zone. Basically, the zone is setup as being ip-exclusive over a VNIC. Inside the zone, I can ping/resolve etc. If I run the VM with NAT, it works fine. When I set the VM as using a bride connection over the zone's VNIC, the VM (Windows 7) properly gets an IP from my DHCP server, but then loses connection. In the logs of the global zone, I can see the following regarding VirtualBox: vboxNetFltSolarisAttachIp4: Warning: seems 'vboxzone0' is unplumbed. Here, vboxzone0 is the VNIC assigned to the zone VirtualBox is running in. My setup is snv_134. Has anyone ran a VM setup with a bridge connection inside a zone? Any help greatly appreciated! -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] VirtualBox bridge nic in a zone
Hi John, Thanks for the prompt reply. Being new to zones, would you mind explaining a bit more the steps required to accomplish this? I created a second VNIC, vboxzone1, inside the global zone. I added that second VNIC to the non global zone using zonecfg - add net - set physical=vboxzone1. I then unplumbed it since zoneadm was complaining it was in use in the global zone (skipping network interface 'vboxzone1' which is used in the global zone). You mentioned it needs to be plumbed, but I'm not sure how to accomplish that. I also added a new file '/etc/hostname.vboxzone1' inside the zone with 'vboxzone' and 'down' inside of it. Now, inside the zone I see the 2 VNICs, but both of them have the same ip. You mentioned setting the ethernet addess to the VNICs. What do you mean by this? Thanks for your help! -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] VirtualBox bridge nic in a zone
In message 547133454.11296012653482.JavaMail.Twebapp@sf-app1, Benji writes: I created a second VNIC, vboxzone1, inside the global zone. I added that secon By VNIC, I meant Crossbow VNIC, not VirtualBox NIC. In global: # dladm create-etherstub etherstub0 # dladm create-vnic vnic0 # dladm create-vnic vnic1 # dladm create-vnic vnic2 # cat EOF/etc/hostname.vnic0 10.0.0.1 # cat EOF/etc/ipf/ipnat.conf map e1000g0 10.0.0.0/24 - 0/32 portmap tcp/udp auto map e1000g0 10.0.0.0/24 - 0/32 # zonecfg -z win7zone export create -b set zonepath=/var/opt/zones/win7zone set brand=ipkg set autoboot=true set ip-type=exclusive add net set physical=vnic1 end add net set physical=vnic2 end add device set match=/dev/vboxdrv end add device set match=/dev/vboxusbmon end In non-global winz7zone: # cat /etc/hostname.vnic1 10.0.0.2 # cat /etc/hostname.vnic2 10.0.0.3 down # cat /etc/defaultrouter 10.0.0.1 # ifconfig vnic2 Now configure your VBox to use the host's vnic2 in bridged mode and set its ethernet address to the same per page 88 of the VBox manual. John groenv...@acm.org ___ zones-discuss mailing list zones-discuss@opensolaris.org