我试图从libVirtpipe理的虚拟机中获取VNC访问数据。 但是,当我运行virsh dumpxml $machine ,vnc passwd丢失: <graphics type='vnc' port='-1' autoport='yes'/> 使用virsh edit $machine检查相同的,我看到的密码实际上是在那里: <graphics type='vnc' port='-1' autoport='yes' passwd='asdf'/> 为什么是这样? 这是故意的(什么原因?),或者这可能是一个错误?
我试图在我的无头gentoo服务器上设置libvirtd。 我想通过tls进行远程控制。 我遵循libvirt远程访问指南,但它不适合我:客户端virt-manager显示以下错误: unable to connect to libvirtd at 'xxx.xxx.info': Connection refused Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/connection.py", line 1055, in _try_open None], flags) File "/usr/lib/python2.6/site-packages/libvirt.py", line 107, in openAuth if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: unable to connect to libvirtd at 'xxx.xxx.info': Connection refused 这里是我目前的服务器libvirtdconfiguration(注释剥离): listen_tls = 1 tls_port = "16514" auth_tls […]
试图用virt-manager安装kvm vm,我得到这个错误。 这台机器有16GB的内存,我input了4096MB。 这里有什么问题? Unable to complete install '<class 'libvirt.libvirtError'> operation failed: could not query memory balloon allocation Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1571, in do_install vm.startup() File "/usr/share/virt-manager/virtManager/domain.py", line 1297, in startup self._update_status() File "/usr/share/virt-manager/virtManager/domain.py", line 1902, in _update_status info = self.get_info() File "/usr/share/virt-manager/virtManager/domain.py", line 1212, in get_info return self._backend.info() File […]
系统更新后(在SL 6.1 – yum更新),我注意到了以下状态信息: # /etc/init.d/libvirtd status libvirtd dead but pid file exists 其中一个更新的软件包是“libvirt”。 这是否有可能导致这个问题? 如果我将重新启动“libvirtd”守护程序,这也将重新启动所有的KVM虚拟机? 我不确定在更新过程中是否自动重启“libvirt”服务(就像MySQL一样)? 问候
我升级到Ubuntu 12.04.1,现在libvirt(通过开放星云)成功运行虚拟机,但他们没有find2驱动器(特别是启动驱动器)。 一个是“hd”,另一个是“cdrom”。 机器启动但失败,并显示“启动介质找不到高清”(这是在一个VNCterminal,我没有复制到任何地方的输出,所以这不是逐字消息)。 我尝试使用新版本的qemu(通过vmbuilder)构build一个新磁盘,这台新机器与旧机器有相同的问题。 万一它很重要(我不明白为什么会),我使用开放的星云来pipe理机器。 没有任何相关的日志: syslog , libvirtd , oned 。 这就是说,机器出现时,没有什么有趣/exception的报道。 版本 libvirt 0.9.8-2ubuntu17.4 qemu-kvm 1.0+noroms-0ubuntu14.3 libvirt xmlconfiguration部分(relavent) <os> <type arch='x86_64' machine='pc-1.0'>hvm</type> <boot dev='hd'/> </os> … <devices> <emulator>/usr/bin/kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/var/lib/one//203/images/disk.0'/> <target dev='sda' bus='scsi'/> <alias name='scsi0-0-0'/> <address type='drive' controller='0' bus='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' […]
我已经使用Ubuntu的云模板作为LXC容器,他们都运行良好。 最近我切换到使用libvirt-lxc ,并遵循Ubuntu文档中的说明 ,但图像初始化与LXC不同: 试图连接到AWS的元数据服务器,并得到错误: 2013-02-05 00:55:48,209 – util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: url error [timed out] 默认密码不起作用。 我需要通过修改rootfs的/etc/shadow来启用密码,因为默认密码“ubuntu”账号已被禁止。 我认为LXC会预先处理cloud-init问题,并为其提供一些用户数据和元数据。 我试图find如何手动执行此操作,但是cloud-init文档页面并没有帮助, 因为它的例子都是针对euca-tools 。 我还注意到lxc-start有一个选项-C : “-C选项将创build一个云容器,configuration为与元数据服务一起使用。 但是我只是不知道如何映射这个选项,并且所有的相关设置libvirt_lxc 。 我如何正确地启动映像/ rootfs?
我尝试了lsof|grep *.qcow2并没有得到任何结果(为什么?我肯定有虚拟机使用该磁盘格式运行)。 我也考虑grep qcow2在configuration目录中的* .xml,但是这不会告诉我哪些在使用必然。 有没有简单的方法来确定哪些磁盘映像正在使用以及哪些域/虚拟机? 另外,因为lsof似乎没有做我想要的,所以你用什么方法来确定哪个文件被哪个进程访问? 使用libvirt / kvm / qemu virsh 0.10.2运行Cent 6.3 编辑:看到我的评论,这是grep那是我失败,而不是lsof ..怎么回事,我需要启用扩展正则expression式匹配“* .qcow2”?
我正在尝试在我的服务器上安装libvirt KVM来宾,而我已经搞乱了两天,试图让来宾networking工作。 到目前为止,我还没有到任何地方。 我的networking是DHCP,但我有我的服务器设置来拉一个静态IP。 我这样做是为了将机器移动到数据中心的未来意图,在多个IP和vlan的情况下,事情变得更加复杂,所以如果你能指向一个指南或文档的方向,帮助我学习在那里做什么,它会非常感激。 这里是我的/ etc / network / interfaces:auto lo if ine inet loopback auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.2.200 network 192.168.2.0 broadcast 192.168.2.255 netmask 255.255.255.0 gateway 192.168.2.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp no 这里是我试图用来设置虚拟机的线。 所有的作品,但networking。 注意我正在使用块设备进行存储,所以如果看起来很奇怪,那就是为什么。 virt-install –name irssi –ram […]
我为在KVM虚拟机上工作的用户创build了一个脚本,以便能够在安装了虚拟机的逻辑卷上执行lvm快照。 快照恢复是通过lvconvert –merge /dev/vg1/lv_snapshot我想知道的是,是否有任何简单的方法来从原始的快照lvconvert –merge /dev/vg1/lv_snapshot合并?
如果我需要同时运行一个Windows虚拟机的版本(在CentOS上使用KVM 0.10.2),每一个configuration都是不同的(一个快照将分支到它自己的虚拟机)什么是最好的,最快的方法? 我唯一的select是使用virt-sysprep然后使用virt-clone还是有更快的方法? 如果我不想运行虚拟机的两个版本,LVM快照是好的,但我确实如此。