iVIC 2.0 VMC Best Practice
Test Environment
- OS: Debian Lenny (2.6.26-1-686)
- Hypervisor: KVM/qemu
- CPU: Intel Core2 Duo
- Memory: 4G
iVIC 2.0 VMC
TASK 1: Install the basic environment softwares
Install libvirt-bin required python libs
# apt-get install libvirt-bin python-libvirt
# apt-get install python-yaml
# apt-get install python-soappy
Install kvm qemu
# apt-get install kvm qemu
Install other software
# apt-get install curl udev kpartx openssl syslinux mbr
TASK 2: Install iVIC VMC
Method 1: ivic-vmc.tar.gz
# tar zxf ivic-vmc.tar.gz
# ./install.sh
Method 2: debian package(Not recommended now!)
# dpkg –i ivic-vmc.deb
TASK 3: Get CA and Certificates for iVIC VMC
Download CA cert(ca.crt)
CVC Portal: http://cvc.ivic.org.cn/
Homepage > Communities > Default Community > Download > Download Certificate
Download User Cert
Register a new user(e.g.username/password) if you don't have a user account
Log in
Account > Download Key Store, then file $username.p12 is download
# openssl pkcs12 -in $username.p12 -out $username.pem -passin pass:$password –nodes
TASK 4: Configuration
Edit the file /etc/vmc.yaml, to change the items as needed.
TASK 5: Run VMC Server
vmc server must be run as root
Run in Console
# vmc_server.py [ip]
Run as Daemon
/etc/init.d/vmc start
TASK 6: Register vmc on portal
1. Login in: http://cvc.ivic.org.cn/vmcs/new
2. Input the required information
PS: port unused??any num is OK? default 22