|
|
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole
8 M! h9 ?5 t" g' L+ V+ y. m
5 x1 g0 ~9 Y t5 z% mStarting install..., F! B2 N' V! }3 J' ~3 n" E6 i
ERROR Cannot get interface MTU on 'br0': No such device7 ?" s+ f' v4 U8 ]8 V
Domain installation does not appear to have been successful.) J4 J. {0 M" j, [( v% N. l+ i
If it was, you can restart your domain by running:2 m7 R1 p0 j# g) \& N
virsh --connect qemu:///system start Windows2019_x86
: q2 x: y& O; w3 ?# Gotherwise, please restart your installation.
% w( M5 L( ?3 G% M1 T v. V6 _% \) i, ~8 g* G9 U# @% i/ \
创建失败:有问题,检查网卡:, Y8 G5 m. `+ p5 B6 [' l2 C% ^7 E$ ]
' z/ e8 M8 X2 h! `, u- Jroot@compute01:/usr/src# ip addr
4 A+ j! O" n' _* Y% K1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
3 a7 f3 L2 B- ^! E' d' f link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
, \. y% t# p& v6 q G% C inet 127.0.0.1/8 scope host lo+ [+ P0 x0 [2 U
valid_lft forever preferred_lft forever
9 T$ p' S) C' m2 g4 \/ F. M inet6 ::1/128 scope host 2 O% L+ U5 W( Q$ x9 S% I) h
valid_lft forever preferred_lft forever
4 g: G3 [ S% _0 q$ f2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
2 ]) }* Y) d' i, f9 | link/ether 00:e0:4c:68:10:89 brd ff:ff:ff:ff:ff:ff
4 e/ {( N7 p9 c" P3: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 10002 {1 g3 q7 L+ q
link/ether d8:50:e6:4a:41:b2 brd ff:ff:ff:ff:ff:ff9 s2 E' T" n+ p2 d
inet 198.192.168.66/24 brd 198.192.168.255 scope global enp9s0
7 L0 D* c) i9 h5 d7 Y valid_lft forever preferred_lft forever) @- _) C" c8 r% `0 k, Z+ M$ n
inet6 fe80::da50:e6ff:fe4a:41b2/64 scope link
, ?4 Q# a& n7 `. R valid_lft forever preferred_lft forever
5 a. C! ?# j, Z# T6 c4: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 10002 P; a9 H Q4 n# @
link/ether 04:25:c5:2a:57:13 brd ff:ff:ff:ff:ff:ff
+ c5 ]5 ~: k) D3 E% D3 z6 ~) f2 D inet 192.168.8.66/24 brd 192.168.8.255 scope global enp2s0f0
* q/ W4 J7 J; L) y4 a valid_lft forever preferred_lft forever
! n! ~0 [" a' D inet6 fe80::625:c5ff:fe2a:5713/64 scope link 2 D/ Y' m$ M! n9 ^7 O* I
valid_lft forever preferred_lft forever7 G+ I( |1 y# w. ? D
5: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000# ~6 V0 x E {* {+ H: b/ s V
link/ether 04:25:c5:2a:57:14 brd ff:ff:ff:ff:ff:ff9 b/ O; G2 o1 ?1 e& b" H1 U) S
11: vnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
N; s N& M. \" m1 j) z+ X link/ether fe:54:00:90:65:d2 brd ff:ff:ff:ff:ff:ff
# y' {7 g: u( p* B! z) \3 o+ d2 G5 R k1 o. f. v" a
重新配置网络:" T0 V/ M7 {5 v$ D1 t* `" l, b
) w- g5 t$ j4 ~( W- croot@compute01:/usr/src# netplan apply
8 i5 T- f5 Z* M9 L8 D. U$ W, H, Q& v/ d d8 x! y! q
** (generate:6407): WARNING **: 13:00:50.842: `gateway4` has been deprecated, use default routes instead.5 K4 j: r# V$ S
See the 'Default routes' section of the documentation for more details.& N$ Y/ N! F8 o; M/ e1 b
- j4 p# {% M9 c** (process:6405): WARNING **: 13:00:51.287: `gateway4` has been deprecated, use default routes instead.1 V% v% Q" n. X% h$ ~9 {
See the 'Default routes' section of the documentation for more details.- E; u \# h4 T S' k( v( H
6 b: c, ?4 ^3 z: ?1 F; u** (process:6405): WARNING **: 13:00:51.298: `gateway4` has been deprecated, use default routes instead.8 a, [6 I; l4 @' t% X
See the 'Default routes' section of the documentation for more details.
& W, R3 D4 Z# r% p) @( |+ Y0 N V/ _6 `
** (process:6405): WARNING **: 13:00:51.684: `gateway4` has been deprecated, use default routes instead.: B$ V+ n1 \& q4 j z" G) b7 P
See the 'Default routes' section of the documentation for more details.; Z p8 O" x( [2 [% _' c3 X
2 a0 [, P2 n* E [+ _$ C** (process:6405): WARNING **: 13:00:51.685: `gateway4` has been deprecated, use default routes instead.
$ G O. Z( V3 ~5 g6 l; E. OSee the 'Default routes' section of the documentation for more details.
7 p$ O' z6 D2 ]& {: N/ }
& r) K9 v- Y0 O0 O. c6 @( g' V k3 z6 ?! g* M
再重试,问题解决。9 S) t0 V- W4 j/ {! ]
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole
8 H! C4 Z" ]* }
7 H1 Z- \! f& \Starting install...+ g5 l; o+ S5 a" E7 c
Creating domain... | 0 B 00:00:00
1 t' X$ k# P: o9 Q% e6 X& g5 O; l0 b0 ]$ X- }3 g- {' J
Domain is still running. Installation may be in progress.
$ j# j4 {; E6 p& U$ DYou can reconnect to the console to complete the installation process.% Q' F* {- D4 n* X( N" u
e! U! A# I5 h" K. |' A& G# F5 p; ~- m$ }: Z
|
|