메뉴 건너뛰기

조회 수 16 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

When creating virtual machine with virt-install, i get error

ERROR OS variant ‘ubuntu16.04’ does not exist in our dictionary for OS type ‘linux’

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
[root@server22 ubuntu_vm_1]# virt-install \
>   --import \
>   --name ubuntu_vm_1 \
>   --ram 1024 \
>   --vcpus 1 \
>   --cpu host \
>   --disk ubuntu_vm_1.qcow2,format=qcow2,bus=virtio \
>   --disk ubuntu_vm_1-cidata.iso,device=cdrom \
>   --network bridge=virbr0,model=virtio \
>   --os-type=linux \
>   --os-variant=ubuntu16.04 \
>   --graphics vnc,listen=0.0.0.0 \
>   --noautoconsole
ERROR    OS variant 'ubuntu16.04' does not exist in our dictionary for OS type 'linux'
[root@server22 ubuntu_vm_1]#

This is because the version of libvirt installed on the server do not support OS variant ‘ubuntu16.04’.

To get list of all supported OS varient, run

1
virt-install --os-variant list

Example

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[root@server22 ubuntu_vm_1]# virt-install --os-variant list
win7                 : Microsoft Windows 7 or later
vista                : Microsoft Windows Vista
winxp64              : Microsoft Windows XP (x86_64)
winxp                : Microsoft Windows XP
win2k                : Microsoft Windows 2000
win2k8               : Microsoft Windows Server 2008 or later
win2k3               : Microsoft Windows Server 2003
openbsd4             : OpenBSD 4.x or later
freebsd8             : FreeBSD 8.x or later
freebsd7             : FreeBSD 7.x
freebsd6             : FreeBSD 6.x
solaris9             : Sun Solaris 9
solaris10            : Sun Solaris 10 or later
opensolaris          : Sun OpenSolaris or later
netware6             : Novell Netware 6 or later
netware5             : Novell Netware 5
netware4             : Novell Netware 4
msdos                : MS-DOS
generic              : Generic
debianwheezy         : Debian Wheezy or later
debiansqueeze        : Debian Squeeze
debianlenny          : Debian Lenny
debianetch           : Debian Etch
fedora18             : Fedora 18 or later
fedora17             : Fedora 17
fedora16             : Fedora 16
fedora15             : Fedora 15
fedora14             : Fedora 14
fedora13             : Fedora 13
fedora12             : Fedora 12
fedora11             : Fedora 11
fedora10             : Fedora 10
fedora9              : Fedora 9
fedora8              : Fedora 8
fedora7              : Fedora 7
fedora6              : Fedora Core 6
fedora5              : Fedora Core 5
mageia1              : Mageia 1 or later
mes5.1               : Mandriva Enterprise Server 5.1 or later
mes5                 : Mandriva Enterprise Server 5.0
mandriva2010         : Mandriva Linux 2010 or later
mandriva2009         : Mandriva Linux 2009 or earlier
rhel7                : Red Hat Enterprise Linux 7 or later
rhel6                : Red Hat Enterprise Linux 6
rhel5.4              : Red Hat Enterprise Linux 5.4 or later
rhel5                : Red Hat Enterprise Linux 5
rhel4                : Red Hat Enterprise Linux 4
rhel3                : Red Hat Enterprise Linux 3
rhel2.1              : Red Hat Enterprise Linux 2.1
sles11               : Suse Linux Enterprise Server 11 or later
sles10               : Suse Linux Enterprise Server
opensuse12           : openSuse 12 or later
opensuse11           : openSuse 11
ubuntuquantal        : Ubuntu 12.10 (Quantal Quetzal) or later
ubuntuprecise        : Ubuntu 12.04 LTS (Precise Pangolin)
ubuntuoneiric        : Ubuntu 11.10 (Oneiric Ocelot)
ubuntunatty          : Ubuntu 11.04 (Natty Narwhal)
ubuntumaverick       : Ubuntu 10.10 (Maverick Meerkat)
ubuntulucid          : Ubuntu 10.04 LTS (Lucid Lynx)
ubuntukarmic         : Ubuntu 9.10 (Karmic Koala)
ubuntujaunty         : Ubuntu 9.04 (Jaunty Jackalope)
ubuntuintrepid       : Ubuntu 8.10 (Intrepid Ibex)
ubuntuhardy          : Ubuntu 8.04 LTS (Hardy Heron)
virtio26             : Generic 2.6.25 or later kernel with virtio
generic26            : Generic 2.6.x kernel
generic24            : Generic 2.4.x kernel
 
[root@server22 ubuntu_vm_1]#

Since latest Ubuntu is not supported by installed version of libvirt, you can use any of the newer OS variant available for Ubuntu. In this case, we have

1
ubuntuquantal        : Ubuntu 12.10 (Quantal Quetzal) or later

It will work for Ubuntu 16.04.

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[root@server22 ubuntu_vm_1]# virt-install \
>   --import \
>   --name ubuntu_vm_1 \
>   --ram 1024 \
>   --vcpus 1 \
>   --cpu host \
>   --disk ubuntu_vm_1.qcow2,format=qcow2,bus=virtio \
>   --disk ubuntu_vm_1-cidata.iso,device=cdrom \
>   --network bridge=virbr0,model=virtio \
>   --os-type=linux \
>   --os-variant=ubuntuquantal \
>   --graphics vnc,listen=0.0.0.0 \
>   --noautoconsole
 
Starting install...
Creating domain...                                                                                                                                                                   |    0 B     00:00    
Domain creation completed. You can restart your domain by running:
  virsh --connect qemu:///system start ubuntu_vm_1
[root@server22 ubuntu_vm_1]# virsh list
 Id    Name                           State
----------------------------------------------------
 22    ubuntu_vm_1                    running
 
[root@server22 ubuntu_vm_1]#

List of Articles
번호 제목 글쓴이 날짜 조회 수
19 RemoteFX - Windows 7 가상 머신에서 DirectX 9c 환경을 제공 맨하탄노숙자 2015.05.14 652
18 VMware workstation 11 host Linux NAT 셋업 맨하탄노숙자 2015.04.17 418
17 Using VMware Workstation VMware Workstation 11 Manual file 맨하탄노숙자 2015.04.19 270
16 VMware에서 Port forwarding 방법 맨하탄노숙자 2015.04.27 230
15 Enabling the SSD option on SSD based disks/LUNs that are not detected as SSD by default (2013188) 맨하탄노숙자 2016.04.05 224
14 MS RemoteFX 관련 VM별 메모리 할당 크기 file 맨하탄노숙자 2015.05.14 210
13 esxi force reboot - esxi 6 강제 재부팅 맨하탄노숙자 2016.04.02 209
12 CloudStack 4.1 설치하기 맨하탄노숙자 2015.06.19 209
11 VMware ESXi vib 설치 맨하탄노숙자 2016.04.30 204
10 Easily upgrade ESXi 5.x to the latest ESXi 6.0 via CLI 맨하탄노숙자 2016.04.30 188
9 esxi 6 vib install 맨하탄노숙자 2016.04.05 176
8 Installing on VMware vib 맨하탄노숙자 2016.04.05 173
» virt-install OS variant does not exist 맨하탄노숙자 2019.07.07 16
6 libvirt qemu 맨하탄노숙자 2019.07.11 15
5 Virtual machine CPU configuration 맨하탄노숙자 2019.07.12 14
4 CentOS 7 KVM Bridge Network 브릿지 설정 맨하탄노숙자 2019.07.11 13
3 Booting from a cdrom in a kvm guest using libvirt 맨하탄노숙자 2019.07.11 12
2 KVM Cheatsheet - centos 맨하탄노숙자 2019.07.07 10
1 VMware Workstation 11.x Universal License for Windows & Linux secret 맨하탄노숙자 2015.04.16 0
Board Pagination Prev 1 Next
/ 1