我有一个Ubuntu的13.04服务器。 在它上面,我有一台虚拟机(kvm),其上安装了Windows 2008。 我已经configuration了/ etc / network / interfaces来build立到机器的桥接连接,所以我可以访问我的MS SQL数据库。 但是,我仍然无法连接到它。 我究竟做错了什么? 这里是我目前的/ etc / network / interfaces: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network […]
如果我需要同时运行一个Windows虚拟机的版本(在CentOS上使用KVM 0.10.2),每一个configuration都是不同的(一个快照将分支到它自己的虚拟机)什么是最好的,最快的方法? 我唯一的select是使用virt-sysprep然后使用virt-clone还是有更快的方法? 如果我不想运行虚拟机的两个版本,LVM快照是好的,但我确实如此。
我有一个KVM主机(在Debian上) root@kvm-host:/# cat /etc/network/interfaces auto eth0 iface eth0 inet manual auto vmbr0 iface vmbr0 inet static address 176.xy133 netmask 255.255.255.224 gateway 176.xy129 # Provider's GW IP bridge_ports eth0 bridge_stp off bridge_fd 0 root@kvm-host:/# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 176.xy128 0.0.0.0 255.255.255.224 U 0 0 0 vmbr0 […]
尝试NAT使用iptables在不同的networking。 在桥br0上使用ip 10.10.11.36的KVM主机。 两个vms正在使用ip 192.168.11.60和192.168.11.57共享网桥br0。 想要将来自10.10.11.60的所有请求都转换为192.168.11.60。 这怎么能用SNAT完成。 试过这个: 在主机网桥上,br0创build了一个别名为br0:0的ip 192.168.11.36,并将guest虚拟机指定为网关。 NAT规则。 DNAT all — anywhere 10.10.11.60 to:192.168.11.60 当然,规则柜台并没有增加, 如何使NAT在这里工作?
我正在build立一个环境,让VM主机在NAT防火墙后面运行,并计划安装具有公共IP的VM,以便可以通过Internet直接访问它们,如下图所示。 View post on imgur.com 你将如何去连接这两个虚拟机到networking,你将如何configuration虚拟机主机? (桥接等)
我有一个IP地址为123.123.123.1/24的dedi,问题是网关地址:111.111.111.254,它在完全不同的子网上。 我已经设置了桥接和KVM虚拟化。 主机节点上的/etc/dhcpd.conf。 subnet 0.0.0.0 netmask 0.0.0.0 { authoritative; default-lease-time 21600000; max-lease-time 432000000; } ddns-update-style ad-hoc; host kvm111.0 { hardware ethernet 02:00:00:ce:fd:ab; option routers 111.111.111.254; option subnet-mask 255.255.255.0; fixed-address 123.123.123.2; option domain-name-servers 8.8.8.8,8.8.4.4; } 然后,在Windows操作系统和dhcp上,在该HWID上设置KVM虚拟机(VM)。 它运作良好。 Windows虚拟机得到了123.123.123.2 IP与在111.111.111.254的网关。 但是当我把虚拟机的操作系统改为Debian 6时,它不起作用。 我login到虚拟机,发现网关没有分配。 当我inputroute add default gw 111.111.111.254的答案是: SIOADDCART: no such process 这是因为网关与分配的IP地址在不同的子网中。 所以我不得不在VM上这样做: route add 111.111.111.254/32 […]
我正在运行CentOs 6,只是在KVM虚拟机pipe理器中安装了Windows7,但启动win7虚拟机后,进入暂停模式,下面是win7 xml文件的内容: <domain type='kvm'> <name>cqg.vm.bd</name> <uuid>4edf3189-bebe-fd07-1374-581221186b99</uuid> <memory>3072000</memory> <currentMemory>3072000</currentMemory> <vcpu>4</vcpu> <os> <type arch='x86_64' machine='rhel6.2.0'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='localtime'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='threads'/> <source file='/gt/fsrvthis/virtual-servers-active/cqg.vm.bd/cqg.vm.bd-os.disk'/> <target dev='hda' bus='virtio'/> </disk> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> […]
所以我试图用KVM创build一个虚拟机(在CentOS 6.3上),我使用的命令如下: virt-install –connect qemu:///system –virt-type kvm –name ffVM32 –ram 1024 –disk path=/home/datastore/images/ffVM32.img,size=10 –vnc –cdrom /home/datastore/backups/CentOS-6.4-i386-minimal.iso –bridge bridge0 我得到的输出是: Starting install… Allocating 'ffVM32.img' | 10 GB 00:00 Creating domain… | 0 B 00:00 Cannot open display: Run 'virt-viewer –help' to see a full list of available command line options Domain installation still in progress. You […]
好的UTC晚上! 我在主机上创build了一个tap0设备,如下所示: tap0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 ether 92:80:f9:b0:1e:fd txqueuelen 500 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 我有虚拟机在主机上运行,其接口与tap0(在主机上创buildmacvtap0)进入桥接模式。 但是,当我尝试连接到主机从来宾,没有数据包正在交换。 tap0上没有看到arp数据包。 我相信我正在做一些非常错误的事情,但不明白…
virsh 0.10我正在使用qcow2覆盖和一个支持文件,也qcow2。 覆盖的方式太快了,24小时内超过了20 GB,尽pipe我对磁盘写的不是很多。 这是正常的吗? 是什么导致他们成长? 我假设有任何写作发生在那里,但似乎是在同样的情况下,比单个图像更多的方式。