Skip to content

Commit

Permalink
server: support specifying video settings
Browse files Browse the repository at this point in the history
  • Loading branch information
davispuh authored and ekohl committed Jul 15, 2024
1 parent 497adc7 commit 21fa469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fog/libvirt/models/compute/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Server < Fog::Compute::Server
attribute :cpu
attribute :hugepages
attribute :guest_agent
attribute :video
attribute :virtio_rng

attribute :state
Expand Down Expand Up @@ -413,7 +414,7 @@ def to_xml
graphics.passwd = display[:password] if display[:password] && !display[:password].empty?

xml.video do
xml.model(:type => "cirrus", :vram => 9216, :heads => 1)
xml.model(video)
end
end
end
Expand Down Expand Up @@ -532,6 +533,7 @@ def defaults
:cpu => {},
:hugepages => false,
:guest_agent => true,
:video => {:type => "cirrus", :vram => 9216, :heads => 1},
:virtio_rng => {},
}
end
Expand Down

0 comments on commit 21fa469

Please sign in to comment.