我有以下问题:我有一个具有相当动态网络配置的服务器,需要使用 IF 参数在其上配置路由:
route add ... mask ... ... if ?
Run Code Online (Sandbox Code Playgroud)
如果我知道有关该适配器的所有其他信息,是否有可靠的手动或编程方式来获取该接口编号?
我正在使用 libvirt 在运行 Debian Squeeze amd64 的相当新的(核心 i3)主机上控制 kvm。主机和 Linux 来宾工作并且感觉快速且响应迅速。简单地使用适用于 windows7 的 virt-manager 标准配置文件安装 Win7 需要永远。我主要归咎于磁盘 io,但 Windows 通常似乎不像 linux 来宾那样响应。
您对 kvm 上的 Win7 客户机的性能优化设置有一些提示吗?
(抱歉有很多转储,但我认为它们可以作为参考。)
主机配置:
kvm: Version: 1:0.12.5+dfsg-5+squeeze8
libvirt-bin: Version: 0.8.3-5+squeeze2
Run Code Online (Sandbox Code Playgroud)
虚拟转储xml:
<domain type='kvm' id='27'>
<name>win7-template</name>
<uuid>a4eb05fa-0d4e-5ced-2ff1-e15507795d1b</uuid>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>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/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/win7-template.img'/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' …
Run Code Online (Sandbox Code Playgroud)