Closed jayunit100 closed 1 year ago
@ppggff , have you run privatE_network
before succesfully on the vagrant provider? It appears to do a bridge network i think for me no mater what i enter for the network type
This plugin use the default "user networking (SLIRP)", and the default ip address is 10.0.2.15.
You can change the default ip address by using the extra_netdev_args
config, see details in the readme file.
To use tap, vmnet-shared or other custom network, please try to add raw qemu arguments by extra_qemu_args
config.
Thanks ! I can try that.
qe.extra_netdev_args =
"net=192.168.51.0/24,dhcpstart=192.168.51.10"
Im trying to adopt this now to see if that solves it for me
ok it seems to work now via
https://github.com/kubernetes-sigs/sig-windows-dev-tools/pull/238/files
winw1.vm.provider "qemu" do |qe, override|
qe.vm.network "private_network", type: "dhcp", ip: "10.20.30.20"
qq.arch = "x86_64"
qe.memory = windows_ram
# need for x86_64
qe.machine = "q35"
qe.cpu = "qemu64"
# devices compatible with this box
qe.net_device = "e1000"
qe.drive_interface = "ide"
qe.ssh_port = 50023
qe.extra_netdev_args = "net=10.20.30.0/24,dhcpstart=10.20.30.20"
Maybe we could make it so that it did this by default if someone set the private_network
? that way it would work the same as other providers like virtualbox ?
i think we can close this for folks wanting to use private_ip, see the above snippet
Hi qemu friends!
It appears that private_network doesnt work...
Do we us Slirp or Tap networking in qemu vagrant for private ips? I think we may need TAP based on https://wiki.qemu.org/Documentation/Networking
For cluster setups w multiple VMs.
in the following vagrant file https://github.com/kubernetes-sigs/sig-windows-dev-tools/tree/master-qemu , i added
But it appears machines are coming up with 10.0.2.15...