Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create a vm on isolated network
# (1)
$ xe vm-copy vm=vm-10 new-name-label=gateway-vm
$ xe network-list
$ xe vif-create network-uuid=b211707c-0f56-b33e-22b0-ad1816914b8a device=3 vm-uuid=4fb0febb-5659-f9b5-abf6-21cd63632c5b
$ xe vif-plug uuid=02600ba0-b040-733f-bcce-e64661dcb352
$ xe console vm=gateway-vm
# (2)
root@gateway-vm:/etc/network# cat interfaces
iface eth2 inet static
address 192.168.32.1
netmask 255.255.255.0
# ifup eth2
# ip addr
# ip route
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment