summary refs log tree commit diff stats
path: root/results/classifier/accel-gemma3:12b/kvm/1235
blob: 384b9ef1d89a52bba8ae1f17ee18ba11ca0a7c8c (plain) (blame)
1
2
3
4
5
6
7
8
9
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
Using packer and plugin qemu in the json file to create a RHEL 8.4 guest kvm vm, but ssh timeout error coming, but it is running fine in RHEL 7.9
Description of problem:
I have RHEL 8.5 as the KVM host. I want to create a guest vm of RHEL 8.4 through packer type qemu and have a json file where all the configurations are mentioned.

{

“builders”: [

{

“type”: “qemu”,

“iso_url”: “/var/lib/libvirt/images/test.iso”,

“iso_checksum”: “md5:3959597d89e8c20d58c4514a7cf3bc7f”,

“output_directory”: “/var/lib/libvirt/images/iso-dir/test”,

“disk_size”: “55G”,

“headless”: “true”,

“qemuargs”: [

        [

            "-m",

            "4096"

        ],

        [

            "-smp",

            "2"

        ]
],

“format”: “qcow2”,

“shutdown_command”: “echo ‘nonrootuser’ | sudo -S shutdown -P now”,

“accelerator”: “kvm”,

“ssh_username”: “nonrootuser”,

“ssh_password”: “********”,

“ssh_timeout”: “20m”,

“vm_name”: “test”,

“net_device”: “virtio-net”,

“disk_interface”: “virtio”,

“http_directory”: “/home/azureuser/http”,

“boot_wait”: “10s”,

“boot_command”: [

“e inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/anaconda-ks.cfg”

]

}

],

“provisioners”:

[

{

  "type": "file",

  "source": "/home/azureuser/service_status_check.sh",

  "destination": "/tmp/service_status_check.sh"

},

{

  "type": "file",

  "source": "/home/azureuser/service_check.sh",

  "destination": "/tmp/service_check.sh"

},  

{

  "type": "file",

  "source": "/home/azureuser/azure.sh",

  "destination": "/tmp/azure.sh"

},

{


  "type": "file",

  "source": "/home/azureuser/params.cfg",

  "destination": "/tmp/params.cfg"

},



{ 

  "type": "shell" ,



  "execute_command": "echo 'siedgerexuser' | {{.Vars}} sudo -E -S bash '{{.Path}}'",



  "inline": [
"echo copying" , "cp /tmp/params.cfg  /root/",
    "sudo ls -lrt /root/params.cfg",
    "sudo ls -lrt /opt/scripts/"
  ],


    "inline_shebang": "/bin/sh -x"

},

{

  "type": "shell",

  "pause_before": "5s",
  "expect_disconnect": true ,

  "inline": [
    "echo runningconfigurescript" , "sudo sh /opt/scripts/configure-env.sh"

  ]

},

{

  "type": "shell",

  "pause_before": "200s",

  "inline": [
    
    "sudo sh /tmp/service_check.sh",
    "sudo sh /tmp/azure.sh"

  ]

}
]

}

It is working fine in rhel 7.9, but the same thing giving ssh timeout error in RHEL 8.4.

But when i am creating guest vm with virt-install it is able to create a vm and i am able to see it in cockpit web ui, but when i initiate packer build with qemu plugin then  giving ssh timeout error it is not visible in cockpit UI, so not able to see where the guest vm created get stuck.

Can anyone please help me to fix this issue where why vm not able to come up and also why qemu created vm not visible in cockpit web ui as that will be really helpful while debugging
Additional information: